package com.itkeien.streamprogramproject.simpStream;

import org.junit.Test;

import java.util.List;
import java.util.stream.Stream;

public class StreamTest {
    public static void main(String[] args) {
        List<List<Integer>> lists = List.of(List.of(1, 2, 3), List.of(4, 5, 6));

        List<List<?>> lists1 = List.of(List.of(List.of(1, 2, 3), List.of(4, 5, 6)), List.of(7, 8, 9));
//        lists.stream().flatMap(list -> list.stream()).forEach(System.out::println);

        lists1.stream().flatMap(list -> list.stream()).forEach(System.out::println);




    }




}
